<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2D变换</title>
</head>
<body>
    <div class="rectangle"></div>
    <div class="square"></div>
    <div class="circle" ></div>
    <div class="triangle"></div>
</body>
<style>
    body{
        background-image: url(./背景10.png);
        background-size: 100%;
    }
    .rectangle {
      width: 200px;
      height: 100px;
      background-color: #fd6711;
      transition: transform 0.5s ease; 
      margin-left: 800px;
      font-size: 50px;
      font-weight: 100;
      text-align:center;
    }
    .rectangle:hover {
      transform: rotate(360deg); 
    }
    .square {
    width: 110px;
    height: 110px;
    background-color: #f0f;
    transition: transform 0.5s ease;
    margin-left: 800px; 
    margin-top: 80px;
  }
  .square:hover {
    transform: translate(50px, 100px); 
  }
  .circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #38e60c;
    transition: transform 0.5s ease;
    margin-left: 800px; 
    margin-top: 80px;
    
  }
  .circle:hover {
    transform: scale(1.5); 
  }
  .triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid #1559ec;
    transition: transform 0.5s ease; 
    margin-left: 800px; 
    margin-top: 80px;
    
  }
  .triangle:hover {
    transform: skew(45deg); 
  }
  </style>
</html>